package com.lkd.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lkd.entity.TaskCountEntity;
import com.lkd.entity.TaskEntity;
import com.lkd.entity.UserCountEntity;
import com.lkd.http.vo.UserWorkTop10Vo;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TaskDao2  {

    /**
     *
     * @param start
     * @param end
     * @param isRepair true 运维人员 false运营人员
     * @return
     */
    public TaskCountEntity getTaskCount(@Param("start") LocalDateTime start,
                                        @Param("end") LocalDateTime end,
                                        @Param("isRepair") Boolean isRepair);

    /**
     *
     * @param start
     * @param end
     * @param isRepair true 运维人员 false运营人员
     * @return
     */
    public List<UserWorkTop10Vo> getUserWorkCountTop10(@Param("start") LocalDateTime start,
                                                       @Param("end") LocalDateTime end,
                                                       @Param("isRepair") boolean isRepair,
                                                       @Param("regionId") int regionId
    );
}
